/* * Copyright 2024, T-Mobile * Package Name: commondatalayer-framework-1.0.0 * Commit Hash: 2ad9b41fbdb5dca88477d9dfbf20335c25259e8a * Build Date: Mon, 22 Jul 2024 15:38:46 GMT */ (()=>{var e={650:(e,t,n)=>{"use strict";n.d(t,{$J:()=>pe,$K:()=>T,$n:()=>ue,AQ:()=>X,AV:()=>P,B1:()=>E,CG:()=>Ze,DX:()=>R,EJ:()=>Ae,Ew:()=>Re,F$:()=>Le,F6:()=>Me,FM:()=>ve,G$:()=>N,GJ:()=>fe,Gs:()=>s,Gt:()=>Je,H3:()=>Q,H5:()=>C,HR:()=>Ye,J$:()=>U,Jf:()=>qe,KO:()=>Fe,Nm:()=>h,Nx:()=>p,ON:()=>Z,OS:()=>u,Oj:()=>l,PN:()=>S,Q0:()=>$,Q1:()=>m,QB:()=>Ie,QM:()=>Se,QO:()=>_e,Qs:()=>Ke,RC:()=>Be,RS:()=>be,RX:()=>J,S:()=>de,S1:()=>L,SM:()=>he,Sh:()=>le,TN:()=>We,Tk:()=>Te,Um:()=>ae,Uy:()=>Xe,VL:()=>Ue,WS:()=>xe,Wz:()=>te,X:()=>Ne,X2:()=>De,XZ:()=>ce,Yz:()=>$e,Z0:()=>b,ZH:()=>o,_R:()=>M,_X:()=>A,a1:()=>et,a2:()=>ze,bN:()=>je,bR:()=>tt,c5:()=>v,cM:()=>se,cQ:()=>oe,ce:()=>ie,dE:()=>Oe,dT:()=>G,dc:()=>ke,f7:()=>d,fY:()=>F,fc:()=>ge,ff:()=>k,gv:()=>He,h6:()=>j,hu:()=>f,hz:()=>c,i5:()=>K,j0:()=>Ce,jc:()=>y,ks:()=>w,kw:()=>ye,mu:()=>x,mw:()=>H,n8:()=>r,oG:()=>Ge,o_:()=>g,pC:()=>W,pb:()=>Qe,q$:()=>Pe,qz:()=>Ve,r2:()=>we,r7:()=>_,rK:()=>me,rl:()=>I,sA:()=>i,sv:()=>V,tj:()=>ne,to:()=>q,tw:()=>Ee,u1:()=>a,uY:()=>D,w5:()=>B,wh:()=>z,zO:()=>O,zW:()=>ee,zd:()=>Y,zz:()=>re});const i="cdl",a="",o=void 0,r="1358406C534BC94D0A490D4D@AdobeOrg",s="QuantumMetricAPI",c="digitalData",l="_satellite",d="cdl_config",u=["lat","lon"],p="_MASK_",g="_taq",h="EN",m="alloy",f="tmoid",v="FPID",w=!0,D="INVALID",y=["companyName","companyZip5","sicCodes","salesAnnualNum","employeesInAllLocationsNum","jobFunction","jobSeniority"],T="tlifewv",b="refsource",I="TLife",k={TMO:"t-mobile.com",Metro:"metrobyt-mobile.com"},C=["TMO","MbyT","TFB","T-Mo Prepaid","Assurance","T-Nation","C2"],E="IPC",S="es_web_an_new",O="dnt",L="pc_pad",M="s_dmdbase",N="dnb",A="TFPID",P="data-auth-state",_="Quantum-loaded",V="MT_CDL_HashedVisitorID";var z,R,x,J,B,j,G,U,Z,F,W,$;!function(e){e.prospect="ambiguous",e.authenticated="authenticated",e["previously-authenticated"]="loggedOut"}(z||(z={})),function(e){e.prospect="Prospect",e.customer="Customer"}(R||(R={})),function(e){e.nbaOfferView="decisioning.propositionDisplay",e.nbaOfferClick="decisioning.propositionInteract"}(x||(x={})),function(e){e.DESKTOP="Desktop",e.WEBVIEW="Web View",e.MOBILE="Mobile",e.TABLET="Tablet"}(J||(J={})),function(e){e.TMO_APP="TMO App",e.TLIFE_APP="TLife App",e.WEB="Web"}(B||(B={})),function(e){e.OTHER="other",e.DOWNLOAD="download",e.EXIT="exit"}(j||(j={})),function(e){e.DEV="dev",e.PROD="prod"}(G||(G={})),function(e){e.TRACKPAGE="trackPage",e.TRACKMODAL="trackModal"}(U||(U={})),function(e){e.ACTIVE="Active",e.SUSPENDED="Suspended"}(Z||(Z={})),function(e){e.INTNAV="INTNAV",e.CMPID="cmpid",e.ICID="icid",e.FORCED_PROSPECT_FLAG="attprspdbg",e.CDL_DEBUG="cdldebug"}(F||(F={})),function(e){e[e.defaultTMOID=0]="defaultTMOID",e[e.MPCSID=1]="MPCSID",e[e.bizTID=2]="bizTID",e[e.aem=3]="aem",e[e.pv_pageName=4]="pv_pageName",e[e.ec=5]="ec",e[e.naf=6]="naf",e[e.nafData=7]="nafData",e[e.es_web_an_new=8]="es_web_an_new",e[e.dnt=9]="dnt",e[e.pc_pad=10]="pc_pad",e[e.TFPID=11]="TFPID"}(W||(W={})),function(e){e.phoenix="phoenix",e.metrodw3="Metro DW3"}($||($={}));const Q=c+".consent.doNotTrack",K=c+".consent.pad",X=c+".idMap",q=c+".product",Y=c+".cart.productList",H=c+".eventDetails",ee=c+".envData.architecture",te=c+".envData.documentTitle",ne=c+".envData.environment",ie=c+".envData.pathname",ae=c+".envData.serverName",oe=c+".envData.userAgent",re=c+".envData.firstPartyId",se=c+".internal.adobeVisitorId",ce=c+".internal.callType",le=c+".internal.dnt",de=c+".internal.hashedVisitorID",ue=c+".internal.techInfo",pe=c+".internal.TMOID",ge=c+".internal.bizTID",he=c+".messages.message",me=c+".messages.pageWithMessage",fe=c+".page.appType",ve=c+".page.channel",we=c+".page.compoundName",De=c+".page.fullPageName",ye=c+".page.domain",Te=c+".page.href",be=c+".page.interaction.actionName",Ie=c+".page.language",ke=c+".page.name",Ce=c+".page.previousPageName",Ee=c+".page.referrer",Se=c+".page.responsiveState",Oe=c+".page.siteName",Le=c+".page.subSection",Me=c+".page.subSubSection",Ne=c+".param.intNavigation",Ae=c+".param.intCampaign",Pe=c+".param.extCampaign",_e=c+".user.accountCategory",Ve=c+".user.accountUserRole",ze=c+".user.accountSubType",Re=c+".user.accountType",xe=c+".user.accountStatus",Je=c+".user.authState",Be=c+".user.carrierIsp",je=c+".user.creditResult",Ge=c+".user.customerID",Ue=c+".user.customerType",Ze=c+".user.customerIndicator",Fe=c+".user.quantumMetricIntegrationId",We=c+".user.userType",$e=c+".user.enterpriseCookie",Qe=c+".user.encryptedMsisdn",Ke=c+".user.encryptedBan",Xe=c+".user.dunsNumber",qe=c+".user.dunsDetails",Ye=c+".user.demandBaseDetails",He="Error in setting environment: Setting to Dev",et="Error : 0",tt=["pageView","modalLoad","clickLink","clickUnav","clickToNavigate","clickToCall","clickToAction","clickAutoSearch","compareViews","download","exit","formStart","formComplete","toolStart","toolComplete","videoStart","videoComplete","targetDisplayed","campaignClick","campaignView","campaignDisplayed","externalCampaign","cartCheckout","cartView","cartAdd","cartRemove","cartOpen","productView","cartTradeInAdd","cartTradeInRemove","cartPurchase","purchase","searchResultClick","pageAlert","accountAlert","error","search","coverageCheck","loginSuccess","loginFail","chatClicked","chatEngaged","chatCobrowseInvite","chatCobrowseLoad","tradeInEstimate","storeSearch","qualityTraffic","engagedVisit","buyingIntent","prospectShoppingVisit","baseShoppingVisit","prospectShoppingVisitTest","activeProspectShoppingVisit","buyingInterestTest","hintSuccessfulEligibilityCheck","activeProspectShoppingVisitTest","qualityTrafficTest","psvtest","engineShown","engineOpened","answeredQuestion","exitScreen","recommendation","addToCartResult","engineClosed","hotControl","engineChatClicked","engineHidden","hotTreated","selfServiceComplete","selfServiceStart","nbaOfferClick","nbaOfferView"]},262:(e,t,n)=>{"use strict";n.d(t,{B2:()=>p,BI:()=>Z,BJ:()=>y,CF:()=>u,Ci:()=>V,Ct:()=>$,FZ:()=>h,G5:()=>J,GW:()=>w,Hn:()=>oe,JY:()=>d,Jt:()=>I,Kg:()=>le,Lm:()=>ge,Mp:()=>P,N5:()=>T,O9:()=>ae,P$:()=>S,Rz:()=>x,TC:()=>N,TV:()=>R,Tn:()=>de,V9:()=>L,VV:()=>E,VW:()=>G,W2:()=>m,Wo:()=>te,XS:()=>Q,Y0:()=>B,YU:()=>q,_2:()=>_,a:()=>F,ct:()=>D,cy:()=>ue,dj:()=>A,e9:()=>g,eL:()=>ne,fj:()=>O,hZ:()=>b,k8:()=>v,oR:()=>K,p9:()=>W,pM:()=>ee,pT:()=>r,qn:()=>k,rV:()=>l,ty:()=>f,u2:()=>he,u7:()=>U,uD:()=>X,uS:()=>j,uc:()=>Y,wv:()=>s,yz:()=>H});var i=n(556),a=n(650),o=function(e,t,n,i){return new(n||(n=Promise))((function(a,o){function r(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}c((i=i.apply(e,t||[])).next())}))};let r,s,c=!0;function l(e){c=e}function d(e){r=e}function u(e){s=e}function p(e,t){if(null===document.getElementById(t)){const n=document.createElement("script");return n.setAttribute("src",e),n.setAttribute("id",t),document.getElementsByTagName("head")[0].appendChild(n),!0}return r("Duplicate instance of script loaded for ID : ",t),!1}function g(e=document.documentElement.lang){return e.substring(0,2).toLocaleUpperCase()||a.Nm}function h(e=document.body.getAttribute(a.AV)){return window._target&&window._target.base||"previously-authenticated"===e||e===a.wh.authenticated||z("MPCSID")?a.DX.customer:a.DX.prospect}function m(){return"1"===k(a.fY.FORCED_PROSPECT_FLAG)||"true"===i.I.cookieList[a.fY.FORCED_PROSPECT_FLAG]?(R(a.fY.FORCED_PROSPECT_FLAG,"true"),"prospect"):/\b:(t|1|i|c|s)\|?\b/i.test(f())?"customer":"prospect"}function f(){function e(e){return z(e)||null}function t(t){return e(t)?"1":"0"}function n(t){let n="0";switch(t){case"ac":/t!1/i.test(e(t))&&(n="1");break;case"tmm":case"ec":/1/i.test(e(t))&&(n="1")}return n}const i={q:function(){let e=sessionStorage.getItem("cqs");return e||(e=/t-mobile\.com/i.test(location.hostname)&&(/^TMT_|_CUST_|_C_/i.test(k("cmpid")||null||"")?"c":""),e&&sessionStorage.setItem("cqs",e)),e}.bind(null,"cqs"),u:function(){return/(?:account|my)\.t-mobile\.com$/i.test(location.hostname)||/metro/i.test(location.hostname)&&/\/(?:bill-pay|account(?:\.html|\/(?:sign-in|register|activation))|my-?account(?:\/|\.html)?)/i.test(location.pathname)?"1":"0"},m:t.bind(null,"s_v121_persist"),b:t.bind(null,"s_v121_persist"),my:t.bind(null,"MyTMobile"),d:t.bind(null,"defaultTMOID"),e:t.bind(null,"es_web_an_new"),mt:"0",s:"0",l:"0",mp:t.bind(null,"MPCSID"),n:n.bind(null,"tmm"),ac:n.bind(null,"ac"),ec:n.bind(null,"ec"),w:t.bind(null,"bizTID"),ip:function(){try{return(JSON.parse(sessionStorage.getItem(a.B1))||{}).isBase?"t":"0"}catch(e){return"0"}},dd:function(){const e=window[a.hz],t=e&&e.user&&e.user.userType;return t&&/customer/i.test(t)?"1":"0"}};return Object.keys(i).map((e=>{const t=i[e];return"function"==typeof t?e+":"+(t()||0):e+":"+t})).join("|")}function v(e=navigator.userAgent){return e.toLowerCase().indexOf("applicationversioncode")>-1?a.RX.WEBVIEW:/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?a.RX.TABLET:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?a.RX.MOBILE:a.RX.DESKTOP}function w(e){return e===a.RX.WEBVIEW?function(){if(!(navigator.userAgent.toLowerCase().indexOf("applicationversioncode")>-1))return!1;return[()=>new URLSearchParams(window.location.search).get(a.Z0)===a.rl,()=>null!==window.sessionStorage.getItem(a.$K),()=>navigator.userAgent.toLowerCase().indexOf("tlife")>-1].some((e=>!!e()&&(window.sessionStorage.setItem(a.$K,"1"),!0)))}()?a.w5.TLIFE_APP:a.w5.TMO_APP:a.w5.WEB}function D(e){try{r(e),window.tagAnalytics.message.push(e)}catch(e){s("Error in pushMessage : ",e)}}function y(){return window[a.Q0.phoenix]?a.Q0.phoenix:a.u1}function T(){try{b(a.tj,a.dT.DEV),window[a.Oj]&&window[a.Oj].environment&&"production"===window[a.Oj].environment.stage&&(b(a.tj,a.dT.PROD),i.I.cfg.environment=a.dT.PROD)}catch(e){s(a.gv,e),i.I.cfg.environment=a.dT.DEV}r(`Setting environment - ${i.I.cfg.environment}`)}function b(e=null,t=void 0){try{if(c&&window.trigger("cfg_var_set",e,t,(new Error).stack),null==e||0==e.length)return"";ae(t)||(t=I(e)),i.I.varlist.push(e),i.I.templateRegex.test(t)&&i.I.dynamicVarList.push(e);const n=e.split(".");let a=i.I;for(let e=0;e{if(null===t.offsetParent)return;const i=t.querySelectorAll("[data-analytics-click]");n++,i.forEach((t=>{const i=t.getAttribute("data-icid");te(i)&&(t.setAttribute("data-analytics-index","Index"+String(n)),e.push(["Index"+n+":"+i+"|"+i]))}))}))}catch(e){r("Error parsing Impressions : ",e)}return e.join("|")}function S(e){let t="";return i.I.varlist.indexOf(e)>-1&&(t=I(e)),t}function O(){i.I[a.hz].page={},i.I[a.hz].coverageMap={},i.I[a.hz].store={},i.I[a.hz].cart={},i.I[a.hz].search={},i.I[a.hz].messages={},i.I[a.hz].eventDetails={},i.I[a.hz].product={},i.I.cfg.consumers.forEach((e=>{e.clearDataFunction()}))}function L(e){return o(this,void 0,void 0,(function*(){const t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t),i=new Uint8Array(n),a=String.fromCharCode(...i);return btoa(a)}))}function M(e,t){let n=!0;const i=""==(t=ce(t,""))?"":".";if(pe(e)&&!ue(e))for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&re(M(e[n],t+i+n))&&b(t+i+n.replace(a.sA,a.hz),e[n]);else n=!1;return n}function N(e){if(M(e),i.I.dynamicVarList.length>0){for(const e of i.I.dynamicVarList){let t,n=I(e);do{try{if(t=i.I.templateRegex.exec(n),t){const e=I(t[2]);e.trim().length>0?n=n.replace(t[0],e):(n=n.replace(t[0],"|-"+t[2]+"-|"),r("Variable was found, but no value was present in dataLayer :: "+t[0]))}}catch(e){r("Error in replacing dynamic variables : ",e)}}while(t);b(e,n)}i.I.dynamicVarList=[]}return!0}function A(){i.I.isConsumerProcessing=!0,i.I.cfg.consumers.forEach((e=>{e.recordDataFunction()})),setTimeout((()=>{i.I.isConsumerProcessing=!1,window.trigger(i.I.CDL_EVENTS.consumerProcessingComplete)}),250)}function P(e=a.u1){return me(I(a.to))||I(a.mw)&&I(a.mw).events&&I(a.mw).events.productView&&"1"===I(a.mw).events.productView&&(e=",productView"),e}function _(e){try{return ae(e)||(e=""),e=e.replace(/["<>()']/gim,"!!")}catch(e){s("sanitizeUntrusted : ",e)}return""}function V(){const e={};try{const t=document.cookie;if(t.length>0){t.split(";").forEach((t=>{const[n,i]=t.trim().split("=");Object.values(a.pC).includes(n)&&(e[n]=decodeURIComponent(i)||a.u1)}))}}catch(e){s("Error reading document cookies: ",e)}return e}function z(e,t=document.cookie){try{if(t.length>0){let n=(" "+t).split(";");return n=n.filter((t=>0==t.indexOf(` ${e}=`))),0==n.length?"":decodeURIComponent(_(n[0].substring(e.length+2)))||""}return""}catch(e){return s("Error getCookie : ",e),""}}function R(e,t,n){try{const a=new Date;let o;a.setTime(a.getTime()),-1==n?o="Thu, 01 Jan 1970 00:00:01 GMT":(n=ce(1e3*n*60,0),o=new Date(a.getTime()+n).toUTCString());const r=i.I.cfg.cookies.cookieDomain;document.cookie="no-domain"!==r?e+"="+encodeURIComponent(t)+(n?";expires="+o:"")+";path=/"+(r?";domain="+r:"")+";SameSite=Lax":e+"="+encodeURIComponent(t)+(n?";expires="+o:"")+";path=/;SameSite=Lax"}catch(e){s("Error setCookie : ",e)}}function x(){let e,t,n=I(a.dE);const i=I(a.FM),o=I(a.F$),r=I(a.F6);a.H5.includes(n)||(n=a.uY,b(a.dE,n));const s=I(a.dc);te(i)&&(t=i+" : ",t+=ie(o,a.uY)+" : ",te(r)&&(t+=r+" : "),t+=ie(s,a.uY),e=n+" | "+t,b(a.r2,t),b(a.X2,e))}function J(){b(a.Gt,a.wh[document.body.getAttribute("data-auth-state")]||a.wh.prospect),I(a.zW)===a.Q0.metrodw3&&I(a.VL)===a.DX.customer&&b(a.Gt,a.wh.authenticated);try{!function(e=i.I.cookieList[a.PN]){te(e)&&(b(a.pb,e.split("||")[0]),b(a.Qs,e.split("||")[1]))}();const e=i.I.cookieList.mc;te(e)&&(b(a.qz,C("p",e,"~","!")),b(a.a2,C("t",e,"~","!").split("_")[1]),b(a.Ew,C("t",e,"~","!").split("_")[0]),b(a.QO,"po"===C("c",e,"~","!")?"Postpaid":"pr"===C("c",e,"~","!")?"Prepaid":""),b(a.WS,"1"===C("",e,"~","!")?a.ON.SUSPENDED:a.ON.ACTIVE))}catch(e){r("Error parsing User cookie :",e)}}function B(e=a.kw,t=i.I.cookieList){return e==a.ff.TMO?t.defaultTMOID:e==a.ff.Metro?t.MPCSID:a.u1}function j(e,t=i.I.cookieList[a._X],n=I(a.oG),o=function(e){return ae(e)&&e.length>0}(k("adobe_mc"))){const r={};return n&&(r[a.hu]=[{id:n,authenticatedState:e}]),!o&&t&&(b(a.zz,t),a.ks&&(r[a.c5]=[{id:t,authenticatedState:e,primary:!0}])),me(r)?r:{identityMap:r}}function G(e=location.href,t=location.search){if(t.includes("?")){const n=new URLSearchParams(t);return a.OS.forEach((function(e){n.has(e)&&n.set(e,a.Nx)})),e.split("?")[0]+"?"+n.toString()}return e}function U(e,t,n){ae(e)&&e.length>0?b(t,e):ae(n)&&b(t,n)}function Z(e,t,n){const i={};let o=!1;if(r("Triggering WebSDK event for :",e),e.split(",").forEach((e=>{a.bR.indexOf(e)>-1&&(i[e]=1,"pageView"!==e&&"modalLoad"!==e||(o=!0))})),Object.keys(i).length<1)return void r(e+" is not configured for WebSDK");let c={cart:window[a.hz].cart,consent:window[a.hz].consent,envData:window[a.hz].envData,page:window[a.hz].page,param:window[a.hz].param,product:window[a.hz].product,store:window[a.hz].store,user:window[a.hz].user,eventDetails:{events:{}}};window[a.hz].eventDetails&&(c.eventDetails=window[a.hz].eventDetails),window[a.hz].employee&&(c.employee=window[a.hz].employee),r(e),o||t.eventDetails&&(t.eventDetails.linkType||(t.eventDetails.linkType=a.h6.OTHER),t.eventDetails.linkName||(t.eventDetails.linkName=e)),Object.keys(c.cart).length>0&&0==Object.keys(c.product).length&&(c.product=c.cart.productList),0!==Object.keys(t).length&&(c=Object.assign(c,t)),c.eventDetails.events=i;const l={xdm:Object.assign(Object.assign({},I(a.AQ)||{}),n),data:c};window[a.Q1]("sendEvent",l).then((function(e){r(e)})).catch((function(e){s(e)}))}function F(e){const t={cart:window[a.hz].cart,consent:window[a.hz].consent,envData:window[a.hz].envData,page:window[a.hz].page,user:window[a.hz].user,product:e["cdl.product"],eventDetails:{events:{}}};let n=a.u1;e["cdl.page.interaction.pageEvent"]?(e["cdl.page.interaction.pageEvent"].split(",").forEach((e=>{a.bR.indexOf(e)>-1&&(t.eventDetails.events[e]=1)})),n=e["cdl.page.interaction.pageEvent"]):e["cdl.eventDetails.events.cartAdd"]&&(t.eventDetails.events.cartAdd=1,n="cartAdd,"),e["cdl.eventDetails.events.cartOpen"]&&(t.eventDetails.events.cartOpen=1,n+="cartOpen"),t.eventDetails.linkType=a.h6.OTHER,t.eventDetails.linkName=n;const i={documentUnloading:!0,xdm:window[a.AQ]||{},data:t};r("Triggering WebSDK event for :",n),window[a.Q1]("sendEvent",i).then((function(e){r(e)})).catch((function(e){s(e)}))}function W(){return a.u1}function $(e){const t=e.split("|"),n=[];return e.length>0&&t.forEach((e=>{n.push({value:e})})),n}function Q(e){const t=[];return void 0!==e&&e.length>0&&e.forEach((e=>{t.push({value:e.type+":"+e.message})})),t}function K(){if(U(sessionStorage.getItem(a._R)||a.u1,a.HR),sessionStorage.getItem(a.G$)){const e=JSON.parse(sessionStorage.getItem(a.G$));let t;a.jc.forEach((n=>{n&&(t+=e[n]+"|")}));U(e.duns,a.Uy),U(t,a.Jf)}}function X(e){return e&&Object.keys(e).length&&!Array.isArray(e)?Object.entries(e).reduce(((e,[t,n])=>(ae(n)&&(e[t]=pe(n)&&null!==n?X(n):n),e)),{}):e}function q(...e){window.gtag(...e)}function Y(){return I(a.tj)}function H(){return I(a.tj)===a.dT.DEV}function ee(e){b("cfg.debug",!!ge(e)&&e)}function te(e){return se(e)&&e.toString().length>0}function ne(e,t,n){return e?t:n}function ie(e,t){return se(e)&&e.toString().length>0?e:t}function ae(e){return void 0!==e}function oe(e){return ge(e)&&!0===e}function re(e){return ge(e)&&!1===e}function se(e){return ae(e)&&null!==e}function ce(e,t){return ae(e)?e:t}function le(e){return"string"==typeof e}function de(e){return"function"==typeof e}function ue(e){return ae(e)&&e.constructor===[].constructor}function pe(e){return e instanceof Object}function ge(e){return"boolean"==typeof e}function he(e){const t=new Event(e);dispatchEvent(t)}function me(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}},122:(e,t,n)=>{"use strict";var i=n(556),a=n(650);class o{constructor(){this.adobeConsumerKey="adobe",this.googleConsumerKey="google",this.releaseVersion="",this.cdlArray=a.o_,this.afterPageLoad=["cdl.trackModal","cdl.trackClick","cdl.trackNavigation","cdl.trackWidget","cdl.trackTransaction","cdl.trackMessage","cdl.trackUpdate","cdl.trackVideo","cdl.trackDownload","cdl.trackImpression","cdl.trackForm","cdl.trackTool","cdl.trackAlert","cdl.trackCoverageMap","cdl.trackEvent","cdl.trackNBAOffer"],this.frameworkFile=a.sA,this.debug=!1,this.persistedVariables=new Map,this.cookies={defaultCookie:"naf",dataCookie:"nafData",chipDelimiter:"|",nameValueDelimiter:"~",cookieDomain:".t-mobile.com"},this.consumers=new Map,this.notifyTMS={onLink:["formComplete"],onPage:["cdlPageLoadEvent"],excludeOnLinks:["campaignView"]},this.environment=a.dT.DEV}getConsumerList(){const e={[this.adobeConsumerKey]:[],[this.googleConsumerKey]:[]};if(this.analyticsConfiguration){if(this.analyticsConfiguration.adobe){const t=Object.keys(this.analyticsConfiguration.adobe);for(const n of t)e[this.adobeConsumerKey].push({key:`${this.adobeConsumerKey}_${n}`,cfg:this.analyticsConfiguration.adobe[n]})}if(this.analyticsConfiguration.google){const t=Object.keys(this.analyticsConfiguration.google);for(const n of t)e[this.googleConsumerKey].push({key:`${this.googleConsumerKey}_${n}`,cfg:this.analyticsConfiguration.google[n]})}}return e}}var r=n(262);class s{constructor(){this.satellite=window[a.Oj]||void 0}static isPresentInVarMap(e,t){for(const n of e)if(n.varName===t)return n}static isPresentInEventMap(e,t){for(const n of e)if(n.eventName===t)return n}dntTrack(e,t){return 1===e&&1===t||(2!==e||0!==t)&&((!e||1!==e)&&((!t||0!==t)&&void 0))}}class c extends s{constructor(e,t="Adobe Experience Plaform"){super(),this.killSwitch=!1,this.name=t,this.consumerConfig=e}initConsumer(){r.pT(`Init Consumer :: ${this.name}`);const e=r.Jt(a.Sh);if(super.dntTrack(e,this.consumerConfig.dnt))return this.killSwitch=!0,void r.pT(`Dnt triggered :: ${this.name}`);this.killSwitch?r.pT(`Adobe Experience Plaform - ${this.name} is disabled via Launch`):this.eventMap=this.consumerConfig.variableMaps.eventMap}shouldTrackThisCall(){let e=!1;return e=!0,true}clearDataFunction(){r.pT(`Clear Data :: ${this.name}`)}recordDataFunction(){if(this.shouldTrackThisCall())if(r.pT(`Record Data :: ${this.name}`),r.O9(window[a.Q1])){const e={};let t="pageView";r.hZ(a.AQ,r.uS(r.Jt(a.Gt)));const n=r.Ct(r.VV()),i=r.XS(window[a.hz].page.alert);n.length>0&&(e.eventDetails={campaignList:n},t+=",campaignDisplayed"),i.length>0&&(e.eventDetails?e.eventDetails.alertList=i:e.eventDetails={alertList:i},t+=",pageAlert"),window[a.hz].param.extCampaign&&(t+=",externalCampaign"),t+=r.Mp(),window[a.hz].page.interaction&&window[a.hz].page.interaction.pageEvent&&(t+=","+window[a.hz].page.interaction.pageEvent),r.BI(t,e)}else r.pT("No Alloy")}}class l extends c{initConsumer(){super.initConsumer()}}n(459);class d extends s{constructor(e,t="Google Tag Manager"){super(),this.killSwitch=!1,this.prodProperty="",this.devProperty="",this.propertyID="",this.varMap=[],this.trackEvents=[],this.name=t,this.consumerConfig=e}initConsumer(){r.pT(`Init Consumer :: ${this.name}`);const e=r.Jt(a.Sh);if(super.dntTrack(e,this.consumerConfig.dnt))return this.killSwitch=!0,void r.pT(`Dnt triggered :: ${this.name}`);this.devProperty=this.consumerConfig.devProperty,this.prodProperty=this.consumerConfig.prodProperty,this.killSwitch=this.consumerConfig.killSwitch,this.varMap=this.consumerConfig.variableMaps.varMap,this.trackEvents=this.consumerConfig.variableMaps.eventMap,this.killSwitch?r.pT(`Google Consumer - ${this.name} is disabled via Adobe Launch`):(this.propertyID=r.eL(r.yz(),this.devProperty,this.prodProperty),window.dataLayer=window.dataLayer||[],r.YU("js",new Date),r.YU("config",this.propertyID,{transport_url:this.consumerConfig.transportUrl,first_party_collection:!0,send_page_view:!1,language:r.e9()}),r.YU("set","allow_ad_personalization_signals",!1),setTimeout((()=>{r.B2(this.consumerConfig.gtmUrl+"?id="+this.propertyID,"gtm_ss")}),this.consumerConfig.timeDelay))}clearDataFunction(){this.killSwitch}shouldTrackThisCall(){return!this.killSwitch}recordDataFunction(){this.shouldTrackThisCall()&&(r.pT(`Record Data :: ${this.name}`),r.Jt(a.S)?this.processGooglePageLoad():addEventListener(a.sv,this.processGooglePageLoad))}processGooglePageLoad(){try{r.YU("event","page_view",{customerType:r.Jt(a.VL),hashedVisitorID:r.Jt(a.S),page_title:r.Jt(a.r2),send_to:this.propertyID,visitorID:r.Jt(a.cM)})}catch(e){r.ct("Error in processGooglePageLoad:"+e)}}processCommerceEvents(e){try{r.YU("event",e,{page_title:r.Jt(a.r2),visitorID:r.Jt(a.cM),hashedVisitorID:r.Jt(a.S),CustomerType:r.Jt(a.VL)})}catch(e){r.ct("Error in processCommerceEvents:"+e)}}}class u extends d{initConsumer(){super.initConsumer()}}const p=new class extends o{constructor(){super(),this.satellite=window[a.Oj]||null,this.analyticsConfiguration=this.satellite&&this.satellite.getVar(a.f7)||this._analyticsConfig,this.persistedVariables=this.analyticsConfiguration.persistedVarMap||{}}initConsumers(){const e=this.getConsumerList();try{const t=e[this.adobeConsumerKey][0];this.consumers.set(t.key,new l(t.cfg,`Adobe Experience Platform - ${t.key}`)),e[this.googleConsumerKey].forEach((e=>this.consumers.set(e.key,new u(e.cfg,`Google Tag Manager - ${e.key}`))))}catch(e){r.wv("Error while fetching consumer script from Adobe Launch ",e)}}get _analyticsConfig(){return{brand:"T-Mobile",common_config:{defaultPageValues:{channel:"No Channel",subSection:"No SubSection",name:"Page Not named",siteName:"TMO"}},persistedVarMap:{},adobe:{tmobile_consumer:{variableMaps:{varMap:[{varName:"cdl.page.modalName",mappedTo:"modalName"},{varName:"cdl.navBar.navigationName",mappedTo:"navName"},{varName:"cdl.navBar.searchTerm",mappedTo:"searchTerm"}],eventMap:["pageView","clickLink"],splEventMap:{},prodEventMap:{},prodVarMap:{}}}},google:{gtm_serverside:{devProperty:"G-VKH047RCXH",prodProperty:"G-SK38WR4SG9",gtmUrl:"https://googletagmanager.com/gtag/js",fireInNonProd:!1,transportUrl:"",prodHostname:["www.t-mobile.com","es.t-mobile.com"],exclusionList:[],timeDelay:2e3,killSwitch:!1,dnt:0,variableMaps:{varMap:[{varName:a.r2,mappedTo:["pageName"]},{varName:a.cM,mappedTo:["visitorID"]},{varName:a.VL,mappedTo:["CustomerType"]}],eventMap:["prodView","cartAdd","cartRemove","checkout","purchase"]}}}}}};i.I.init(p),window.cdl=i.I},556:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var i,a=n(262),o=n(650);class r{constructor(){this.quantumLoadedCallback=function(){window[o.Gs]&&window[o.Gs].addEventListener("start",(function(){let e=("function"==typeof window[o.Gs].getSessionID&&window[o.Gs].getSessionID()||"")+"|"+("function"==typeof window[o.Gs].getUserID&&window[o.Gs].getUserID()||"");e="|"===e?"":e,a.hZ(o.KO,e)}))}}notifyTMS(e){try{const t=c.cfg.notifyTMS;let n=[],i=!1;if(a.O9(e)&&a.O9(e.eventInfo.tracktype)&&"link"===e.eventInfo.tracktype){const e=a.Jt(o.RS);let r=!0;for(const n of t.excludeOnLinks)if(e===n){r=!1;break}r&&(n=t.onLink,i=!0)}else n=t.onPage;for(const e of n){const t=new Event(e);i&&(t.detail={actionName:a.Jt(o.RS),varlist:JSON.parse(JSON.stringify(c.varlist)),[o.hz]:JSON.parse(JSON.stringify(c[o.hz]))}),a.pT("notifyTMS: dispatching event "+e),window.dispatchEvent(t),window[e]=!0}}catch(e){a.pT("Error notifyTMS: Unable to dispatch event",e)}}pageLoad(){c.currentFunction="cdl.pageLoad",this.trackLatentCall(),this.defaultPageData();const e=localStorage.getItem("cdlNextPage")||"";if(""!==e){try{const t=JSON&&JSON.parse(e);for(const e in t)a.hZ(e,t[e])}catch(e){a.wv("err ",e)}localStorage.removeItem("cdlNextPage")}a.u7(a.qn("INTNAV"),o.X),a.u7(a.qn("ICID"),o.EJ),a.u7(a.qn("CMPID"),o.q$),a.u7(c.cookieList.defaultTMOID,o.$J),a.u7(c.cookieList.bizTID,o.fc),a.u7(a.Y0(),o.oG),a.u7("0"===c.cookieList[o.S1]?"pad:OptOut":"1"===c.cookieList[o.S1]?"pad:OptIn":"",o.i5);const t=window.Visitor||void 0;if(a.O9(t)){const e=t.getInstance(o.n8).getMarketingCloudVisitorID();a.hZ(o.cM,e)}else a.O9(window[o.Q1])&&window[o.Q1]("getIdentity").then((function(e){a.hZ(o.cM,e.identity.ECID)})).catch((function(e){a.wv("Error from GetIdentity",e)}));a.V9(a.Jt(o.cM)).then((e=>{a.hZ(o.S,e),a.u2(o.sv)})),a.Wo(a.Jt(o.dc))&&c.firstPageView&&(this.track(),c.firstPageView=!1),addEventListener(o.r7,this.quantumLoadedCallback),this.setPageDataProcessed(!0)}track(e){try{a.Wo(a.P$(o.SM))&&(a.hZ(o.SM,a._2(a.Jt(o.SM))),a.hZ(o.rK,a.Jt(o.r2))),a.dj(),this.notifyTMS&&this.notifyTMS(e),c.varlist=[],c.eventlist=[]}catch(e){a.wv("Error : ",e)}}trackPage(e){try{a.fj(),a.TC(e),this.defaultPageData(),this.track();const t={eventType:o.J$.TRACKPAGE};this.triggerDLEvent(t),c.firstPageView=!1}catch(e){a.wv("Error trackPage : "+e)}}trackEvent(e){const t={eventDetails:{chatVendor:e["cdl.page.interaction.customData"].vendor,chatEngagementID:e["cdl.page.interaction.customData"].engagementId,chatConversationID:e["cdl.page.interaction.customData"].convoId,chatLocation:e["cdl.page.interaction.customData"].eName,debugMessage:e["cdl.page.interaction.customData"].debugMessage,kpiLOB:e["cdl.page.interaction.customData"].lob,gifts15IntegrationId:e["cdl.page.interaction.customData"].id,gifts15EngagementType:e["cdl.page.interaction.customData"].trigger}};a.BI(e["cdl.page.interaction.pageEvent"],t)}trackWidget(e){let t="clickToAction";if(a.O9(e["cdl.widgetHref"])?t="clickToCall":a.O9(e["cdl.target.activityName"])?t="target":a.O9(e["cdl.page.stepName"])&&(t=e["cdl.page.interaction.pageEvent"]),a.O9(e["cdl.page.interaction.pageEvent"])&&(t=e["cdl.page.interaction.pageEvent"]),"target"===t)t="targetDisplayed";const n={eventDetails:{targetActivityName:e["cdl.target.activityName"],ctaName:e["cdl.widgetHref"]||e["cdl.widgetName"],navigationMenu:e["cdl.eventDetails.navigationMenu"],searchTerm:e["cdl.eventDetails.searchTerm"],compareProducts:e["cdl.eventDetails"]&&e["cdl.eventDetails"].compareProducts.replace(/gen/g,"Gen")||o.ZH}};a.BI(t,n),n.eventType=t,window[o.hz].events.push(this.sanitizeObj(n))}trackNavigation(e){const t="autoSearch"===e["cdl.page.interaction.pageEvent"],n=e["cdl.eventDetails.searchTerm"]||e["cdl.navBar.searchTerm"],i=e["cdl.navBar.navigationName"]||e["cdl.eventDetails.navigationMenu"],o={eventInfo:{eventAction:"click",eventType:"navigation"},eventDescription:{navName:i,searchTerm:n,autoSearch:!!t}};this.triggerDLEvent(o);const r={eventDetails:{navigationMenu:i,searchTerm:n}};let s="clickUnav";n&&(s+=t?",clickAutoSearch":",search"),a.BI(s,r)}trackImpression(e){const t={eventDetails:{campaignList:e["cdl.eventDetails.campaignList"]||a.Ct(e.campaignList)}};a.BI("campaignView",t),t.eventType="campaignView",window[o.hz].events.push(this.sanitizeObj(t))}trackForm(e){const t={eventDetails:{formName:e["cdl.eventDetails.formName"],formSelections:e["cdl.page.interaction.formSelections"],modalName:e["cdl.eventDetails.modalName"]}};let n="";e["cdl.page.interaction.pageEvent"]?n=e["cdl.page.interaction.pageEvent"]:"1"===e["cdl.eventDetails.events.formStart"]?n="formStart":"1"===e["cdl.eventDetails.events.formComplete"]&&(n="formComplete"),a.BI(n,t),t.eventType=n,window[o.hz].events.push(this.sanitizeObj(t))}trackTool(e){const t={eventInfo:{eventAction:"click",eventType:e["cdl.page.interaction.pageEvent"]},eventDescription:{tool:{toolName:e["cdl.eventDetails.toolName"]||e["cdl.page.interaction.toolName"],searchTerm:e["cdl.eventDetails.searchTerm"]||e["cdl.search.term"]},userActionResult:e["cdl.page.interaction.responseData"]||e["cdl.dynamic.responseData"]}};try{const n=e["cdl.page.interaction.responseData"]||e["cdl.dynamic.responseData"];if(n)try{const e=JSON.parse(n);t.eventDescription.tradeInResult=e.TradeInEstimator}catch(e){const i=JSON.parse(n.replace(/'/g,'"'));t.eventDescription.tradeInResult=i.TradeInEstimator}}catch(e){a.wv("Error trackTool : "+e)}this.triggerDLEvent(t);const n={eventDetails:{toolName:e["cdl.eventDetails.toolName"],tradeInEstimate:e["cdl.eventDetails.tradeInEstimate"]||t.eventDescription.tradeInResult,toolResult:e["cdl.eventDetails.toolResult"]}};let i="";e["cdl.page.interaction.pageEvent"]?i=e["cdl.page.interaction.pageEvent"]:"1"===e["cdl.eventDetails.events.toolStart"]?i="toolStart":"1"===e["cdl.eventDetails.events.toolComplete"]&&(i="toolComplete"),a.BI(i,n)}trackModal(e){a.hZ(o.XZ,"trackModal");const t={eventDetails:{modalName:e["cdl.eventDetails.modalName"]}};a.BI("modalLoad",t),t.eventType="modalLoad",window[o.hz].events.push(this.sanitizeObj(t))}closeModal(){a.hZ(o.XZ,o.J$.TRACKPAGE)}trackMessage(e){const t={eventDetails:{message:e["cdl.eventDetails.message"]}};a.BI("error",t),t.eventType="error",window[o.hz].events.push(this.sanitizeObj(t))}trackAlert(e){if(e["cdl.page.alert"]){const t=[];e["cdl.page.alert"].forEach((e=>{t.push({type:e.type,message:e.message})}));const n={eventInfo:{eventAction:"click",eventType:"alert"},eventDescription:{alert:t,userActionResult:e["cdl.page.interaction.responseData"]||e["cdl.dynamic.responseData"]}},i=e["cdl.page.interaction.responseData"]||e["cdl.dynamic.responseData"];if(i)try{const e=JSON.parse(i);n.eventDescription.tradeInResult=e.TradeInEstimator}catch(e){const t=JSON.parse(i.replace(/'/g,'"'));n.eventDescription.tradeInResult=t.TradeInEstimator}this.triggerDLEvent(n)}}trackCoverageMap(e){const t={eventInfo:{eventAction:"click",eventType:"coverage"},eventDescription:{coverage:e["cdl.coverageMap.coverage"],location:e["cdl.coverageMap.location"],zip:e["cdl.coverageMap.zip"],ctaName:e["cdl.coverageMap.ctaName"]}};this.triggerDLEvent(t)}trackNBAOffer(e){const t=e["cdl.page.interaction.pageEvent"],n=o.mu[t],i=e["cdl.eventDetails.experienceDecisioning"],r=JSON.parse(i),s=Array.isArray(r)?r:[r],c=a.uD({eventDetails:{nbaOfferDetails:e["cdl.eventDetails.nbaOfferDetails"],experienceDecisioning:i,offerStatus:e["cdl.eventDetails.offerStatus"]}}),l=i&&{_experience:{decisioning:{propositions:s}},eventType:n};a.BI(t,c,l),c.eventType=t,window[o.hz].events.push(this.sanitizeObj(c))}trackLatentCall(){try{if(sessionStorage.getItem("pendingTracking")){sessionStorage.getItem("pendingTracking").split(",").forEach((e=>{const t=sessionStorage.getItem(e);if(sessionStorage.removeItem(e),t){const e=new XMLHttpRequest;e.open("GET",t,!0),e.send()}})),sessionStorage.removeItem("pendingTracking")}}catch(e){a.wv("Error in tracking Latent calls.",e)}}trackClick(e){const t=e["cdl.page.icidList"].split(" : ");let n="";a.O9(t[2])&&a.O9(t[3])?n=t[3]+":"+t[2]+"|"+t[2]:a.O9(t[2])&&(n=t[2]);const i={eventInfo:{eventAction:"click",eventType:"clickToNavigate"},eventDescription:{assetType:t[0],ctaName:t[1],icid:n,modalName:e["cdl.eventDetails.modalName"]||e["cdl.page.modalName"]}};this.triggerDLEvent(i);const o={eventDetails:{ctaName:t[0]+" : "+t[1],clickedIcid:t[2],campaignList:a.Ct(n),modalName:e["cdl.eventDetails.modalName"]||e["cdl.page.modalName"]}};let r="clickToNavigate";o.eventDetails.clickedIcid&&(r+=",campaignClick"),a.BI(r,o)}trackVideo(e){const t={eventDetails:{videoName:e["cdl.eventDetails.videoName"],modalName:e["cdl.eventDetails.modalName"]}};a.BI(e["cdl.page.interaction.pageEvent"],t)}addToCart(e){a.a(e)}cartRemove(e){a.BI("cartRemove",e)}triggerDLEvent(e){window[o.hz].events.push(this.sanitizeObj(e)),window.triggerEvent&&window.triggerEvent()}sanitizeObj(e){const t={};return Object.keys(e).forEach((n=>{e[n]===Object(e[n])?t[n]=this.sanitizeObj(e[n]):void 0!==e[n]&&(t[n]=e[n])})),t}tmsRegisterEvent(e){try{if(void 0!==c.cfg.notifyTMS){const t=c.cfg.notifyTMS;-1===t.onLink.indexOf(e)&&t.onLink.push(e)}}catch(t){a.pT("Error tmsRegisterEvent: Unable to register event - "+e)}}tmsRemoveEvent(e){try{if(void 0!==c.cfg.notifyTMS){const t=c.cfg.notifyTMS,n=t.onLink.indexOf(e);-1!==n&&(t.onLink=t.onLink.slice(n))}}catch(t){a.pT("Error tmsRemoveEvent: Unable to remove event - "+e)}}trackDownload(e){const t={eventDetails:{linkName:e["cdl.eventDetails.linkName"],linkUrl:e["cdl.eventDetails.linkUrl"],linkType:o.h6.DOWNLOAD}};a.BI(o.h6.DOWNLOAD,t)}trackExitLink(e){const t={eventDetails:{linkName:e["cdl.eventDetails.linkName"],linkUrl:e["cdl.eventDetails.linkUrl"],linkType:o.h6.EXIT}};a.BI(o.h6.EXIT,t)}defaultPageData(){a.hZ(o.Tk,a.VW()),a.hZ(o.tw,document.referrer);const e=a.k8();a.hZ(o.QM,e),a.hZ(o.GJ,a.GW(e)),a.hZ(o.QB,a.e9()),a.hZ(o.XZ,o.J$.TRACKPAGE),a.u7(c.cookieList.aem,o.Um),a.Rz();const t=window[o.Oj]||void 0;a.O9(t)||a.hZ(o.$n,"Adobe Launch Missing for "+a.Jt(o.r2)+" "+location.pathname),a.Wo(a.Jt(o.X2))&&(a.hZ(o.j0,c.cookieList.pv_pageName),a.TV("pv_pageName",a.Jt(o.X2))),a.hZ(o.kw,location.host.toString().replace("www.","")),a.u7(a.BJ(),o.zW),a.u7(a.p9(),o.bN),a.Wo(a.Jt(o.SM))&&(a.hZ(o.SM,a._2(a.Jt(o.SM))),a.hZ(o.rK,a.Jt(o.r2))),a.Mp(a.Jt(o.zd)),a.hZ(o.VL,a.FZ()),a.hZ(o.TN,a.W2()),JSON.parse(sessionStorage.getItem(o.B1))&&a.u7(JSON.parse(sessionStorage.getItem(o.B1)).carrierIsp,o.RC),a.hZ(o.Yz,c.cookieList.ec),a.hZ(o.CG,a.ty()),a.G5(),a.oR()}initializeTargets(){c.cfg.consumers.forEach((e=>{e.initConsumer(a.uc())}))}setPageDataProcessed(e){c.pageDataProcessed=e,a.Hn(e)&&window.trigger(c.CDL_EVENTS.pageDataProcessed,e)}_pushToQueue(...e){window[c.cfg.cdlArray].push.apply(this,e)}flushQueue(){try{const e=window[c.cfg.cdlArray];for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Array.isArray(n)){const e=n[0];c.pageDataProcessed&&(c.pageDataProcessed&&c.firstPageView&&c.cfg.afterPageLoad&&c.cfg.afterPageLoad.indexOf("cdl."+e)>-1||c.isConsumerProcessing||(this.execFnImmediately.apply(this,[n]),window[c.cfg.cdlArray].splice(t,1)))}else a.wv("CDL queue items has to be an array. Item :",JSON.stringify(n),"is not an array")}}catch(e){a.wv("Error FlushQueue : "+e)}}execFnImmediately(e){try{if(!e||0==e.length)throw new Error("I need some arguments!");if(!a.Kg(e[0]))throw new Error("fq: function name expected to be a string");const t=Array.prototype.slice.call(e),n=t[0];if(e=t.splice(1),c.currentFunction=`${c.cfg.frameworkFile}.${n}`,a.pT(`fq : executing function: ${n}, With Args`,JSON.stringify(e)),a.Tn(this[n]))this[n](...e);else{if(!a.Tn(window[n]))throw new Error("There is no function with name :: "+n);window[n].apply(this,e)}}catch(e){a.wv("execFnImmediately : "+e)}}}class s{constructor(){this._events={}}bind(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)}unbind(e,t){this._events=this._events||{},e in this._events!=!1&&this._events[e].splice(this._events[e].indexOf(t),1)}trigger(e,...t){if(this._events=this._events||{},e in this._events!=!1)for(const n of this._events[e])n.apply(this,Array.prototype.slice.call(t,1))}static mixin(e){["bind","unbind","trigger"].forEach((t=>{e instanceof Function?e.prototype[t]=s.prototype[t]:e[t]=s.prototype[t]}))}}i=o.hz;const c=new class{constructor(){this.consoleAvailable="undefined"!=typeof console&&"function"==typeof console.log&&"function"==typeof console.error,this.CDL_EVENTS={pageDataProcessed:"cdl_page_data_processed",consumerProcessingComplete:"consumer_processing_complete"},this.debug=!1,this.traceVariable=!1,this.pageDataProcessed=!1,this.firstPageView=!0,this.processingTrackFunc=!1,this.inModule=!1,this.dtoStack=[],this.varlist=[],this.eventlist=[],this.isConsumerProcessing=!1,this[i]={},this.currentFunction="",this.initDone=!1,this.templateRegex=/(%)(digitalData\.[\w._]+)(%)/i,this.dynamicVarList=[]}init(e){this.cfg=e,this.debugMode(),this.cookieList=a.Ci(),this.cfg.initConsumers(),window[this.cfg.cdlArray]=a.cy(window[this.cfg.cdlArray])?window[this.cfg.cdlArray]:[],s.mixin(window);const t=new r;void 0===window[this.cfg.cdlArray]&&(window[this.cfg.cdlArray]=[]),void 0===window[o.hz]?(this[o.hz]={events:new Array,cart:{},consent:{},coverageMap:{},internal:{},param:{},page:{},product:{},search:{},store:{},user:{}},window[o.hz]=this[o.hz]):this[o.hz]=window[o.hz];const n=window[this.cfg.cdlArray].push;window[this.cfg.cdlArray].push=function(...e){n.apply(this,e),t.flushQueue.apply(t)},window.bind(this.CDL_EVENTS.pageDataProcessed,(function(){t.flushQueue.apply(t)})),window.bind(this.CDL_EVENTS.consumerProcessingComplete,(()=>{t.flushQueue.apply(t)})),this.initDone=!0,this.initCdlMechanics()}initCdlMechanics(){if(!this.initDone)return void a.wv("DO NOT call this function directly. Call init() method.");const e=new r;s.mixin(e),a.N5(),a.pM(a.Hn(a.yz())),a.Wo(a.qn(o.fY.CDL_DEBUG))&&(this.setDebugMode(!0),a.pT("Debugging enabled via queryparam :: cdldebug"));let t=!1;/comp|inter|loaded/.test(document.readyState)?t=!0:(addEventListener("DOMContentLoaded",(()=>{e.pageLoad()}),!1),a.pT("Added Event listener"));const n=c.cookieList[o.zO];a.hZ(o.Sh,"1"===n),a.hZ(o.H3,"1"===n?"OptOut":"OptIn"),e.initializeTargets(),a.hZ(o.cQ,window.navigator.userAgent),a.hZ(o.Wz,document.title),a.hZ(o.ce,document.location.pathname),a.hZ(o.Tk,a.VW()),a.hZ(o.tw,document.referrer);const i=a.k8();a.hZ(o.QM,i),a.hZ(o.GJ,a.GW(i)),a.hZ(o.QB,a.e9()),a.u7(c.cookieList.aem,o.Um),window.tagAnalytics={},t&&e.pageLoad()}debugMode(){const e=sessionStorage.getItem(o.fY.CDL_DEBUG);this.debug=a.O9(e)?"true"===e:this.debug,this.traceVariable=this.debug,console&&console.log&&console.error&&(this.debug?console.log("cdl:: Debug is ENABLED"):console.log("cdl:: Debug is DISABLED")),a.JY(this.consoleAvailable&&this.debug?console.log.bind(window.console,"cdl::"):function(){}),a.CF(this.consoleAvailable&&this.debug?console.error.bind(window.console,"cdl::"):function(){}),a.rV(this.debug),sessionStorage.setItem(o.fY.CDL_DEBUG,this.debug?"true":"false")}setDebugMode(e){a.Lm(e)?(this.traceVariable=e,sessionStorage.setItem(o.fY.CDL_DEBUG,Boolean(e).toString()),this.debugMode()):a.pT("Expected true/false.")}enableDebug(){this.setDebugMode(!0)}disableDebug(){this.setDebugMode(!1)}}},459:()=>{window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(556);n(122)})(); //# sourceMappingURL=cdl.js.map